<?php
if (isset($_GET["display"], $meniu, $title)) {
	$meniu1 = array();
	for ($i = 1; $i <= 6; $i++)
		$meniu1[$i] = "meniu";
	$meniu1[$meniu] = "meniu_s";
	$rezultat = mysql_query("select * from " . $db["banner"] . " where name='banner-top'");
	if (mysql_num_rows($rezultat) > 0)
		$top = mysql_fetch_array($rezultat);
	else
		$top["content"] = "";
	$rezultat = mysql_query("select * from " . $db["banner"] . " where name='banner-right'");
	if (mysql_num_rows($rezultat) > 0)
		$right = mysql_fetch_array($rezultat);
	else
		$right["content"] = "";

	$header = '
                <!DOCTYPE html>
                <html lang="en">
                <head>
                        <title>' . $lang["name_site"] . " - " . $title . '</title>
                        <link href="stil.css" rel="stylesheet" type="text/css" />
                        <script type="text/javascript" src="./bibleoteci/jquery-1.7.1.min.js"></script>
                        <script type="text/javascript" src="./bibleoteci/jquery-ui-1.8.17.custom.min.js"></script>
                        <script type="text/javascript" src="funct.js"></script>
                        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
                        <meta name="description" content="Battles" /> 
                        <meta name="keywords" content="game, battles" />
                        <link rel="shortcut icon" href="" type="image/x-icon" />
                </head>
                <body>
                    <div id="container">
                        <header>
                            <img src="imagini/logo_bg.png" alt="" id="logo" />
                            <div id="ads">
                            ' . $top["content"] . '
                            </div>
                            <div style="clear: both;" ></div>
                            <a href="logged.php?display=profile"><input type="button" class="buton" value="' . $lang["my_profile"] . '" /></a>
                            <br />
                            <a href="logged.php?display=settings"><input type="button" class="buton"  value="' . $lang["settings"] . '" /><img style="width: 16px;position: relative;right: -3px;top: -1px;" src="imagini/settings.png" alt="" /></a>
                            <br />
                            <a href="logout.php"><input type="button" class="buton"  value="' . $lang["logout"] . '" /><img src="imagini/logout_icon.png" alt="" /></a>
                        </header>
                        <div class="content">
                            <div class="news_container">
                                <img src="imagini/coming_soon.png" alt="" id="coming_soon" />
                                <div class="news"><span id="anounce">' . $lang['anunt'] . '</span>
                                    <div class="linie"></div>                                
                                    <span class="newss" > * Lorem Ipsum is simply dummy text of the printing and typesetting industry.</span>
                                    <hr />
                                    <span class="newss"> * Lorem Ipsum is simply dummy text of the printing and typesetting industry and other stuff.</span>
                                    <span class="newss"> * Lorem Ipsum is simply dummy text of the printing and typesetting industry and other stuff.</span>
                                    <hr />                                
                                    <span class="newss"> * Lorem Ipsum is simply dummy text of the printing and typesetting industry and other stuff.</span>
                                    <span class="newss"> * Lorem Ipsum is simply dummy text of the printing and typesetting industry and other stuff.</span>
                                    <hr />
                                    <span class="newss"> * Lorem Ipsum is simply.</span>
                                </div>
                                <div style="clear: both;" ></div>
                                <div class="boring" style="bottom: 45pt;">
                                        <a href="#">Boring surveys: <span style="color: black;">' . users_connected() . '</span></a>
                                </div>
                                <div style="clear: both;" ></div>
                                <div class="boring" style="height: 24px;">
                                        <a href="#">Give Ideas <img src="imagini/idea.png" alt="" /></a>
                                </div>
                                <div style="clear: both;" ></div>
                            </div>
                            <div class="corp">
                                <ul class="header_menu">
                                    <li><a href="logged.php?display=battles"  class="' . $meniu1[1] . '">' . $lang["battles"] . '</a>
                                    <li><a href="logged.php?display=judge_em" class="' . $meniu1[2] . '">' . $lang["judge_em"] . '</a>
                                    <li><a href="logged.php?display=how_to"   class="' . $meniu1[3] . '">' . $lang["how_to_roll"] . '</a>
                                    <li><a href="logged.php?display=gangstaz" class="' . $meniu1[4] . '">' . $lang["gangstaz"] . '</a>
                                    <li><a href="logged.php?display=contact"  class="' . $meniu1[5] . '">' . $lang["contact?!"] . '</a>
                                </ul>   
                                <div stlye="clear: both;"></div>
                                <div class="middle_container">
                                        <div class="continut">
                                        ';




	$footer = '             
                                    </div>
                                </div>
                                <img src="imagini/arma.png" alt="" class="arma" />
                                <div class="footer">
                                    <div class="footer_container">
                                        <img src="imagini/logo_footer.png" alt="" class="logo_footer" />
                                        <div class="menu_footer">
                                            <ul>
                                                <li><a href="#">Privacy policy</a></li>
                                                <li><a href="#">Terms</a></li>
                                                <li><a href="#">How to roll</a></li>
                                                <li style="border: none;"><a href="#">Contact</a></li>
                                            </ul>
                                        </div>
                                        <div class="copyright">
                                         &copy; 2012 Copyright reserved 
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="adsr"><div style="margin: 10px; width: 100%; height: 100%;">' . $right["content"] . '</div></div>
                        </div>
                        
                    </div>
                </body>
                </html>';
};
?>
